/* 设置水平居中 */
.w{
    width: 940px;
    margin: 0 auto;
}
/*
* 解决高度塌陷问题clearfix
*/
.clearfix::before,
.clearfix::after{
    content: "";
    display: table;
    clear: both;
}


.wrapper{
    background: url(../img/ogMs_bg.jpg) no-repeat;
    background-size: 100% 100%;
}

/* search */
.header .logo{
    float: left;
}
.search i{
    font-style: normal;
    color: #fff;
    margin-right: 10px;
    vertical-align: 3px;
}
.header .search{
    float: right;
    width: 290px;
    height: 40px;
    margin-top: 20px;
    padding: 10px 8px;
    text-align: center;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    font-size: 0;
}
.search input{
    width: 220px;
    height: 20px;
    vertical-align: 5px;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    outline: none;
    color: #fff;
}
::-webkit-input-placeholder{
    color: #fff;
}
.search button{
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    width: 20px;
    height: 20px;
    vertical-align: 3px;
    background-color: rgb(0, 0, 0);
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 2px;
    box-sizing: border-box;
}

/* 导航 */
.nav{
    background-color: rgba(0, 0, 0, 0.8);
    height: 40px;
    line-height: 40px;
    margin-bottom: 20px;
}
.nav li{
    float: left;
    width: 141px;
    padding-left: 15px;
}
.nav a{
    font-size: 14px;
    font-weight: bold;
}
.nav > ul > li:nth-child(1){
    background-color: orange;
    position: relative;
}
.nav li:nth-child(1) a{
    color: #000;
}

/* 三级导航栏 */
.nav1 .nav2{
    position: absolute;
    left: 0;
    height: 40px;
    z-index: 2;
    background-color: gray;
    display: none;
}
.nav1 .nav2:nth-child(2){
    top: 40px;
}
.nav1 .nav2:nth-child(3){
    top: 80px;
}
.nav2 .nav3{
    position: absolute;
    left: 156px;
    height: 160px;
    z-index: 2;
    background-color: red;
    display: none;
}
.nav2:nth-child(1) .nav3 li:nth-child(1){
    top: 40px;
}
.nav2:nth-child(1) .nav3 li:nth-child(2),
.nav2:nth-child(2) .nav3 li:nth-child(1){
    top: 80px;
}
.nav2:nth-child(1) .nav3 li:nth-child(3),
.nav2:nth-child(2) .nav3 li:nth-child(2){
    top: 120px;
}
.nav2:nth-child(1) .nav3 li:nth-child(4),
.nav2:nth-child(2) .nav3 li:nth-child(3){
    top: 160px;
}
.nav2:nth-child(2) .nav3 li:nth-child(4){
    top: 200px;
}
.nav1 > li:nth-child(1):hover .nav2,
.nav2:nth-child(2):hover .nav3,
.nav2:nth-child(3):hover .nav3{
    display: block;
}



/* 轮播图 */
.banner{
    position: relative;
    height: 299px;
    overflow: hidden;
}
.scroll{
    position: absolute;
    width: 3760px;
}
.scroll a{
    float: left;
}
.scroll img{
    width: 940px;
    height: 300px;
}
/* 左右箭头 */
.banner .prev,.banner .next{
    position: absolute;
    top: 50%;
    margin-top: -10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    background-color: #fff;
    /* border-radius: 50%; */
    cursor: pointer;
}
.banner .prev{
    left: 0;
}
.banner .next{
    right: 0;
}
/* 小圆点 */
.banner .dots{
    position: absolute;
    bottom: 30px;
    left: 470px;
    margin-left: -30px;
}
.dots a{
    float: left;    /* 将a设置为块级元素，可以设置宽高 */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-sizing: border-box;
    cursor: pointer;
    margin-right: 5px;
}
.dots .active{
    background-color: #fff;
}

/* 三栏布局 */
.container{
    margin-top: 20px;
}
.container div{
    width: 310px;
    height: 410px;
    background-color: rgba(0, 0, 0, 0.4);
    float: left;
    padding: 10px;
    box-sizing: border-box;
    color: #fff;
}
.container .im{
    margin: 0 5px;
}
.container span{
    color: #337ab7;
}
.we h2{
    font-size: 16px;
}
.container .we .p1{
    font: 13px "Gill Sans";
    font-weight: bold;
    margin-bottom: 20px;
}
.we p,.pe p{
    font: 12px Helvetica;
}
.we .p2{
    margin-top: 10px;
    margin-bottom: 10px;
}
.we a{
    display: block;
    width: 130px;
    height: 30px;
    background-color: #2b6699;
    border-radius: 30px;
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
    line-height: 30px;
}
.im img{
    width: 100%;
    height: 180px;
}
.im img:first-child{
    margin-bottom: 10px;
}
.pe h2{
    font-size: 14px;
    color: #f7941e;
    margin-bottom: 20px;
}
.pe .p3{
    margin-top: 10px;
    margin-bottom: 10px;
}
.pe .p4{
    margin-top: 10px;
}

.bg{
    width: 100%;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: -10px;
}

/* footer */
.footer{
    width: 100%;
    background-color: #f7941e;
    box-shadow: 0 -5px 8px 5px rgb(0, 0, 0),  inset 0 17px 8px -5px rgba(0, 0, 0, 0.7);
    padding: 30px 0;
}
.footer .w div{
    float: left;
    margin-right: 12px;
}
.footer .w div ul{
    margin-top: 20px;
}
.footer .w div ul li{
    margin-bottom: 10px;
}
.footer h3{
    font-size: 14px;
}
.footer div p{
    font-size: 12px;
}
.footer .rd div{
    position: relative;
    width: 140px;
    padding: 15px 10px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 30px;
}
.footer .rd div::after{
    content: "";
    position: absolute;
    right: -15px;
    top: 50%;
    border: 40px solid #fff;
    border-color: transparent #fff transparent transparent;
    transform: rotate(-30deg);
}
.footer .rd span{
    color: #2b6699;
}
.footer .rd p:nth-child(2){
    margin: 8px 0;
}
.footer .rd img{
    width: 150px;
    margin-top: 60px;
}


@media screen and (max-width:600px){
    .w{
        width: 300px;
    }
    .header .logo img{
        width: 300px;
    }
    .search i{
        margin-left: -25px;
    }
    .header .search{
        float: left;
        width: 290px;
        height: 40px;
        margin: 0 0 20px 5px;
        padding: 10px 4px;
        border-radius: 30px;
    }
    .search input{
        width: 230px;
    }
    .search button{
        position: absolute;
    }

    /* 导航 */
    .nav{
        width: 288px;
        height: 90px;
        margin-bottom: 20px;
    }
    .nav li{
        width: 82px;
        padding-left: 8px;
    }
    .nav1 > li:nth-child(1),
    .nav1 > li:nth-child(2),
    .nav1 > li:nth-child(3){
        border-bottom: 5px solid #666;
    }
    .nav1 > li:nth-child(3){
        padding-left: 24px;
    }
    .nav li:last-child{
        margin-left: 16px;
    }
    .nav a{
        font-size: 12px;
    }

    /* 三级导航栏 */
    .nav1 .nav2:nth-child(2){
        top: 42px;
    }
    .nav1 .nav2:nth-child(3){
        top: 82px;
    }
    .nav2 .nav3{
        left: 90px;
    }
    .nav3 li:last-child{
        margin-left: 0;
    }

    /* 轮播图 */
    .banner{
        width: 288px;
        height: 180px;
        margin-top: 20px;
    }
    .scroll{
        width: 1152px;
    }
    .scroll img{
        width: 288px;
        height: 170px;
    }
    /* 小圆点 */
    .banner .dots{
        left: 150px;
    }

    /* 三栏布局 */
    .container{
        margin-top: 10px;
    }
    .container div{
        width: 290px;
        height: 420px;
        padding: 10px;
        margin-left: 4px;
    }
    .we h2{
        font-size: 15px;
    }
    .we a{
        width: 120px;
        height: 28px;
        line-height: 28px;
    }
    .im img{
        width: 100%;
        height: 180px;
    }

    /* footer */
    .footer .w div{
        width: 130px;
        float: left;
        margin-right: 20px;
    }
    .footer .rd div{
        position: relative;
        left: -155px;
        top: 45px;
        width: 140px;
        padding: 15px 10px;
    }
    .footer .rd img{
        width: 140px;
        margin-top: -80px;
        margin-bottom: 30px;
    }
    .footer > .w > p:last-child{
        margin-top: 10px;
    }
}

@media screen and (min-width:600px) and (max-width:960px){
    body{
        width: 960px;
    }
    .w{
        width: 715px;
        margin: 0 auto;
        position: relative;
    }
    .header .logo img{
        width: 280px;
    }
    .search i{
        margin-right: 210px;
    }
    .header .search{
        width: 200px;
        height: 30px;
        margin-top: 10px;
        padding: 8px 5px;
        border-radius: 30px;
        position: relative;
    }
    .search input{
        position: absolute;
        left: 29px;
        top: 5px;
        width: 130px;
        height: 20px;
    }
    .search button{
        position: absolute;
        right: 8px;
        top: 5px;
        width: 20px;
        height: 20px;
        padding: 2px;
        box-sizing: border-box;
    }

    /* 导航 */
    .nav{
        height: 35px;
        line-height: 35px;
        margin-bottom: 10px;
    }
    .nav li{
        width: 109px;
        padding-left: 8px;
    }
    .nav li:last-child{
        padding-left: 16px;
    }
    .nav a{
        font-size: 12px;
    }

    /* 三级导航栏 */
    .nav1 .nav2:nth-child(2){
        top: 35px;
    }
    .nav1 .nav2:nth-child(3){
        top: 75px;
    }
    .nav2 .nav3{
        left: 117px;
    }
    .nav3 li:last-child{
        margin-left: 0;
    }

    /* 轮播图 */
    .banner{
        width: 715px;
        height: 210px;
        margin-top: 20px;
    }
    .scroll{
        width: 2860px;
    }
    .scroll img{
        width: 715px;
        height: 210px;
    }
    /* 小圆点 */
    .banner .dots{
        left: 368px;
    }

    /* 三栏布局 */
    .container{
        margin-top: 10px;
    }
    .container div{
        width: 234px;
        height: 530px;
        padding: 10px;
    }
    .we h2{
        font-size: 15px;
    }
    .we a{
        width: 80px;
        height: 28px;
        line-height: 28px;
    }
    .im img{
        height: 230px;
    }
    .im img:first-child{
        margin-bottom: 10px;
    }
    .pe h2{
        font-size: 14px;
        color: #f7941e;
        margin-bottom: 20px;
    }
    .pe .p3{
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .pe .p4{
        margin-top: 10px;
    }

    /* footer */
    /* .footer{
        padding-bottom: 70px;
    } */
    .footer .w div{
        width: 215px;
        float: left;
        margin-right: 23px;
    }
    .footer .cs{
        margin-top: 20px;
    }
    .footer .rd div{
        position: relative;
        left: 0;
        top: 10px;
        width: 240px;
        padding: 15px 10px;
    }
    .footer .rd img{
        width: 150px;
        margin-top: -85px;
        margin-bottom: 30px;
        margin-left: 255px;
    }
    .footer > .w > p{
        float: left;
    }
    .footer > .w > p:last-child{
        margin-top: 10px;
    }
}